export default {
	mounted :(el, binding)=>{
		let throttleTime = binding.value ?? 2000;
		let cbFun;
		const func = function(event){			
			if(!cbFun){ 
				cbFun = setTimeout(()=>{ cbFun = null; }, throttleTime);
			}else{ 
				event && event.stopImmediatePropagation();
			}
		}
		el.addEventListener('click', event=>func(event), true);
		el.addEventListener('tap', event=>func(event), true)
	}
}